package com.session02;

import com.session01.InventoryItem;

public class DVDPlayer extends InventoryItem {
    public String make, model;
    private double retailPrice; //零售价格

    public DVDPlayer(String make, String model, long partNumber) {
        super(partNumber, "DVD 播放机");
        this.make = make;
        this.model = model;
    }

    public DVDPlayer(String make, String model) {
        super();
        this.make = make;
        this.model = model;
        // partNumber = 11223344L; //不能通过编译！
    }

    private void setRetailPrice(double p) {
        //System.out.println(getPartNumber()); //不能通过编译！
        retailPrice = p;
    }
}
